import BasicLayout from '@/layouts/basic-layout';
const meta = {
    auth: true
};

const pre = 'settings/';
export default {
    path:'/settings',
    name:'settings',
    redirect: {
        name:`${pre}person`
    },
    meta,
    component:BasicLayout,
    children: [
        {
            path:'project',
            name:`${pre}project`,
            meta:{
                ...meta,
                title:'项目',
            },
            component:()=> import('@/pages/settings/project.vue')
        },
        {
            path:'department',
            name:`${pre}department`,
            meta:{
                ...meta,
                title:'部门',
            },
            component:()=> import('@/pages/settings/department.vue')
        },
        {
            path:'jobs',
            name:`${pre}jobs`,
            meta:{
                ...meta,
                title:'岗位',
            },
            component:()=> import('@/pages/settings/jobs.vue')
        },
        {
            path:'person',
            name:`${pre}person`,
            meta:{
                ...meta,
                title:'人员',
            },
            component:()=> import('@/pages/settings/person.vue')
        },        
        {
            path:'role',
            name:`${pre}role`,
            meta:{
                ...meta,
                title:'角色',
            },
            component:()=> import('@/pages/settings/role.vue')
        },
        {
            path: 'development/menu',
            name: `${pre}development/menu`,
            meta: {
                ...meta,
                title: '菜单',
            },
            component: () => {
                return import ('@/pages/settings/development/menu'); 
            },
        },
        {
            path: 'development/action',
            name: `${pre}development/action`,
            meta: {
                ...meta,
                title: '动作',
            },
            component: () => {
                return import ('@/pages/settings/development/action'); 
            },
        },
        {
            path: 'userSetting',
            name: `${pre}userSetting`,
            header:'0',
            meta: {
                ...meta,
                title: '设置页面',
            },
            auth: ["hidden"],
            component: () => {
                return import ('@/pages/settings/userSetting'); 
            },
        },
    ]
}